import 'package:dio/dio.dart';
import 'package:flutter_project/tool/network/http/code/http_config.dart';

class DZHttpConfig extends HttpConfig {
  DZHttpConfig(this._baseUrl, {Map<String, dynamic>? headers})
      : _headers = headers;
  final Map<String, dynamic>? _headers;
  final String _baseUrl;
  @override
  String baseUrl() {
    return _baseUrl;
  }

  @override
  Map<String, dynamic>? headers() {
    return _headers;
  }

  @override
  List<Interceptor>? get interceptors => throw UnimplementedError();

  @override
  Duration get timeout => const Duration(seconds: 30);
}
